package com.hex.ds.hdrs.warn.dao;


import com.hex.bigdata.hbda.base.BaseDao;
import com.hex.ds.hdrs.warn.po.WarnContent;
import com.hex.ds.hdrs.warn.po.WarnSendMethod;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Package: com.hex.ds.hdrs.warn.dao
 * @ClassName WarnContentDao
 * @Description: 告警内容dao
 * @Author: ji.tang
 * @Date 2022/4/28 15:58
 * @Version v1.0
 **/
@Repository
public class WarnContentDao extends BaseDao {

    public void insert(WarnContent warnContent) {
        this.insert("com.hex.ds.hdrs.warn.dao.WarnContentDao.insert", warnContent);
    }

    public List<WarnContent> selectAll(Map map) {
        return this.selectList(WarnContent.class, "com.hex.ds.hdrs.warn.dao.WarnContentDao.selectAll", map);
    }

    public WarnContent selectById(String pkId) {
        return this.selectOne(WarnContent.class, "com.hex.ds.hdrs.warn.dao.WarnContentDao.selectById", pkId);
    }

    public WarnContent queryByWarnConfId(String confId) {
        return this.selectOne(WarnContent.class, "com.hex.ds.hdrs.warn.dao.WarnContentDao.queryByWarnConfId", confId);
    }
}
